// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   TrainerProfileService.java

package com.nervytech.tutorcruise.db.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nervytech.tutorcruise.db.dao.interfaces.ITrainerProfileDAO;
import com.nervytech.tutorcruise.db.dao.model.CompanyProfile;
import com.nervytech.tutorcruise.db.dao.model.TrainerProfile;
import com.nervytech.tutorcruise.db.service.interfaces.ITrainerProfileService;
import com.nervytech.tutorcruise.service.exception.TrainerCruiseServiceException;

@Service("trainerProfileService")
public class TrainerProfileService
    implements ITrainerProfileService
{

	@Autowired
	private ITrainerProfileDAO trainerProfileDao;
	
    public void saveTrainerProfile(TrainerProfile trainerprofile)
    {
    }

    public TrainerProfile getTrainerProfile(long userId)
        throws TrainerCruiseServiceException
    {
        TrainerProfile trainerProfile = null;
        List<TrainerProfile> trainersList = null;
        try
        {
            trainersList = trainerProfileDao.getTrainerProfile(userId);
            if(trainersList.size() > 0)
                trainerProfile = (TrainerProfile)trainersList.get(0);
        }
        catch(Exception e)
        {
            e.printStackTrace();
            throw new TrainerCruiseServiceException(e.getMessage());
        }
        return trainerProfile;
    }

    public void updateTrainerProfile(CompanyProfile companyprofile)
    {
    }

    public void updateTeachingExperience(String s, String s1)
    {
    }

    public void updateSkillSummary(String s, String s1)
    {
    }

    public void updateEduSummary(String s, String s1)
    {
    }

    public void updateProfExperience(String s, String s1)
    {
    }

    public void updateCertSummary(String s, String s1)
    {
    }

    public void updateTaggedSkills(String s, String s1)
    {
    }

    public void updateExpYears(String s, String s1, String s2)
    {
    }

    public void updateSocials(String s, String s1, String s2, String s3, String s4)
    {
    }

    public void updateArea(String s, String s1, String s2, String s3)
    {
    }

    public void updateAchievementSummary(String s, String s1)
    {
    }

    public void updateBlogs(String s, String s1)
    {
    }

    public void updateTitle(String s, String s1)
    {
    }

    public void updateFullName(String s, String s1)
    {
    }

    public void addNewTrainer(long userId, Date createdTime, Date updatedTime)
        throws TrainerCruiseServiceException
    {
        try
        {
            trainerProfileDao.addNewTrainer(userId, createdTime, updatedTime);
        }
        catch(Exception e)
        {
            throw new TrainerCruiseServiceException(e.getMessage());
        }
    }

}
